import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { AdminComponent } from './admin.component';
import {NewslistComponent} from './components/newslist/newslist.component';
import {NewseditComponent} from './components/newsedit/newsedit.component';
import {CarousellistComponent} from './components/carousellist/carousellist.component';

const routes: Routes = [{ path: '', component: AdminComponent }
,{path:'newslistforadmin',component: NewslistComponent},
  {path:'newsedit',component: NewseditComponent}
  ,{path:'carousellist',component:CarousellistComponent}
  ];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class AdminRoutingModule { }
